package edu.suda.xsap.mapper;
import edu.suda.xsap.entity.CustomerStats;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.Month;
import java.time.Year;
import java.util.List;

@Mapper
public interface CustomerStatsMapper {
    List<CustomerStats>  searchNewByYear(@Param("year1")Year year1, @Param("year2")Year year2);
    List<CustomerStats>  searchNewByYearAndQuarter(Year year);
    List<CustomerStats>  searchNewByYearAndMonth(@Param("year")Year year, @Param("month")Month month);//此函数的作用是是按天查询
    List<CustomerStats> searchNewByMonth (Year year);//按月查询
}
